﻿using System;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 会员主表
    /// </summary>    
    public partial class Users
    {
        /// <summary>
        /// ID
        /// </summary>
        public int id { get; set; } = 0;
        /// <summary>
        /// 用户组ID
        /// </summary>
        public int group_id { get; set; } = 0;
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 6位随机字符串,加密用到
        /// </summary>
        public string salt { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string password { get; set; }
        public string password2 { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string avatar { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nick_name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string sex { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? birthday { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string telphone { get; set; }
        /// <summary>
        /// 所属地区逗号分隔
        /// </summary>
        public string area { get; set; }
        /// <summary>
        /// 详情地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// QQ号码
        /// </summary>
        public string qq { get; set; }
        /// <summary>
        /// MSN号码
        /// </summary>
        public string msn { get; set; }
        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal amount { get; set; }
        /// <summary>
        /// 账户积分
        /// </summary>
        public int point { get; set; } = 0;
        /// <summary>
        /// 升级经验值
        /// </summary>
        public int exp { get; set; } = 0;
        /// <summary>
        /// 账户状态,0正常,1待验证,2待审核,3锁定
        /// </summary>
        public int status { get; set; } = 0;
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime reg_time { get; set; } = DateTime.Now;
        /// <summary>
        /// 注册IP
        /// </summary>
        public string reg_ip { get; set; }
        public float longitude { get; set; } = 0;
        public float latitude { get; set; } = 0;
    }
}